package com.tablefood.service.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import com.tablefood.dao.ProfileDao;
import com.tablefood.domain.ShopProfile;
import com.tablefood.service.ProfileService;
@Transactional
public class ProfileServiceImpl implements ProfileService {

	@Resource
	ProfileDao profileDao;
	
	@Override
	public ShopProfile insertProfile(ShopProfile profile) {
		return profileDao.insertProfile(profile);
	}

	@Override
	public ShopProfile updateProfile(ShopProfile profile) {
		return profileDao.updateProfile(profile);
	}

	@Override
	public List searchOneProfile(String userid) {
		 
		return profileDao.searchOneProfile(userid);
	}

	@Override
	public List searchProfileByUsername(String username)
	{
		System.out.println("进入ProfileDaoImpl的searchProfile方法中查找用户信息");
		return profileDao.searchProfileByUsername(username);
	}
}
